/* **********************************************************
 * Copyright 2010 Dimitar Vangelovski
 *
 * This file is part of the Gens3 3D Engine.
 * 
 * The Gens3 3D Engine is free software; you can redistribute it and/or
 * modify it under the terms of version 2 of the GNU General Public
 * License as published by the Free Software Foundation.
 * 
 * The Gens3 3D Engine is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with the Gens3 3D Engine; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301, USA
 * **********************************************************/


#pragma once

#include <string>

class CMapDiffuse
{
public:

	CMapDiffuse();
	CMapDiffuse(const CMapDiffuse &other);
	CMapDiffuse(std::string strMapName, std::string strBitmap, float fUVW_U_Offset, float fUVW_V_Offset, float fUVW_U_Tiling, float fUVW_V_Tiling);
	~CMapDiffuse();

	void		SetMapName(std::string strName) { m_strMapName = strName; }
	void		SetBitmap(std::string strBitmap) { m_strBitmap = strBitmap; }
	void		SetIndex(unsigned int iIndex) { m_iTextureIndex = iIndex; }
	void		SetTransparent(bool bTransparent) { m_bTransparent = bTransparent; }
	void		SetUVW_U_Offset(float fOff) { m_fUVW_U_Offset = fOff; }
	void		SetUVW_V_Offset(float fOff) { m_fUVW_V_Offset = fOff; }
	void		SetUVW_U_Tiling(float fTil) { m_fUVW_U_Tiling = fTil; }
	void		SetUVW_V_Tiling(float fTil) { m_fUVW_V_Tiling = fTil; }

	std::string	GetMapName() const { return m_strMapName; }
	std::string	GetBitmap() const { return m_strBitmap; }
	unsigned int	GetTextureIndex() const { return m_iTextureIndex; }
	bool		IsTransparent() const { return m_bTransparent; }
	float		GetUVWUOffset() const { return m_fUVW_U_Offset; }
	float		GetUVWVOffset() const { return m_fUVW_V_Offset; }
	float		GetUVWUTiling() const { return m_fUVW_U_Tiling; }
	float		GetUVWVTiling() const { return m_fUVW_V_Tiling; }

private:
	std::string	m_strMapName;
	std::string	m_strBitmap;		// texture file name
	unsigned int	m_iTextureIndex;
	bool		m_bTransparent;
	float		m_fUVW_U_Offset;
	float		m_fUVW_V_Offset;
	float		m_fUVW_U_Tiling;
	float		m_fUVW_V_Tiling;
};

